package com.head.firtst.ch1;

/**
 * @author guohuixin
 * @date 2018/8/11
 */
public class ModelDuck extends Duck {
    @Override
    public void display() {
        System.out.println("MallarDuck dispaly");
    }

    public ModelDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }
}
